Skip to main content
Version: 2.11.1 - 2.11.0

M-Bus

api.mbusTransaction(msg, timeout, retry)

Transmit "msg" and wait given "timeout" milliseconds for the answer. The transmission is retried "retry" times.

Turn on MBus using mbusState first.

api.mbusSetup(baudrate, parity, stopBits, dataBits)

Configures the MBus communication interface. Configuration from GUI is used by default, but it can be overriden using this function.

Turn on M-Bus using mbusState after setting up M-Bus parameters using this function.

api.mbusState(state)

Turns on the M-Bus circuitry.

Use api.mbusState(1) before api.mbusTransaction() and api.mbusState(0) after to reduce consumption. The consumption significantly raises if the circuitry is turned on for too long.

Do not use the api.mbusState(1) during LoRaWAN or NB-IoT message transmition.

api.mbusScan(filter, timeout)

Scan for Mbus devices.

api.mbusFilter(operation,filter,scan_filter)

Function to create and manipulate internal table conatining secondary addresses.

api.mbusVifDifFilter(operation,scan_filter)

Function filtering received M-Bus frame by given group of bytes (VIF/DIF)